package com.application.moneycalculator.data;

import java.util.ArrayList;
import java.util.List;

import com.application.moneycalculator.log.Log_;

public class ExpensesCollection {
	
	private final String TAG = "ExpensesCollection";
	
	List<ExpenseItem> listExpenses  = new ArrayList<ExpenseItem>();

	public boolean addExpense(ExpenseItem item)
	{
		Log_.out(TAG, "addExpense");
		
		if(item != null)
		{
			listExpenses.add(item);
		}
		
		return true;
	}
	
	public int getCount()
	{
		Log_.out(TAG, "getCount");
		
		return listExpenses.size();
	}
}
